﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Clientes.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">       
    
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">    
<link rel="stylesheet" type="text/css" href="lookandfeel.css" />
    <title>Agenda de Clientes</title>
</head>

<body>
    
    <form id="form_agregar_cliente" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
        <table border="0">
            <tr>
                <td width="400" style="background-image:url('../Imagenes/banner_superior3.png')">
                    <br/>
                    <asp:Panel ID="titulo" runat="server" BorderWidth="0" Height="100px" BorderColor="White" style=" border-top: 0px; margin-left: 250px" Width="200px">
                        <img alt="" src="../Imagenes/titulo.png" style="width: 250px; height: 100px"  />
                    </asp:Panel>                        
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>
                    <br/>   
                    
                        <asp:Label ID="titulo_pagina" runat="server" Font-Bold="True" 
                                Font-Names="Palatino Linotype" Font-Size="X-Large" ForeColor="#3E7DD6" 
                                style="top: 75px; left: 500px; font-family: Verdana; font-size: 15pt; position: absolute; height: 25px; width: 500px" 
                                Text="Agenda de Clientes"></asp:Label>   
                            
                        <asp:Image ID="image_linea1" runat="server" ImageUrl="../Imagenes/lineah.png" 
                                style="top: 130px; left: 218px; position: absolute; height: 20px; width: 150px"/>  
                        
                       <asp:ImageButton ID="boton_consultar" runat="server" ToolTip="Consultar Cliente"  ImageUrl="../Imagenes/consultar2.png" 
                                style="top: 120px; left: 280px; position: absolute; height: 55px; width: 55px"/> 
                                
                       <asp:Panel ID="popup_consultar" 
                        runat="server" Direction="LeftToRight" Height="92px" 
                        style="top: 208px; left: 269px; position: absolute; width: 212px" 
                        Font-Names="Arial" BorderStyle="Solid" BorderColor="#3E7DD6" BorderWidth="2px" BackColor="#EFF4FC">
                
                            <asp:Label ID="nombre_cliente" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Nombre:"
                                style="top: 10px; left: 20px; position: absolute; height: 20px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
                            
                            <asp:TextBox ID="texto_cliente" runat="server"
                                style="top: 10px; left: 80px; position: absolute; height: 20px; width: 110px" 
                                BorderStyle="Inset">
                            </asp:TextBox>                                                
                                                                                       
                            <asp:Button ID="boton_consulta" runat="server" 
                                style="top: 60px; left: 40px; position: absolute; height: 25px; 
                                width: 120px" Font-Names="Verdana" Font-Size="Small" Text="Consultar" OnClick="consultaCliente">
                            </asp:Button>
                       </asp:Panel>                                                                               
                       
                       <cc1:hovermenuextender ID="hme2" runat="Server"
                            TargetControlID="boton_consultar"
                            PopupControlID="popup_consultar"
                            HoverCssClass="popupHover"
                            PopupPosition="Right"
                            OffsetX="0"
                            OffsetY="0"
                            PopDelay="100" />
                    
                       <asp:Image ID="imagen_linea2" runat="server" ImageUrl="../Imagenes/lineah.png" 
                                style="top: 180px; left: 200px; position: absolute; height: 20px; width: 150px" 
                                />   
                                
                       <asp:ImageButton ID="boton_insertar" runat="server" ToolTip="Insertar Cliente"  ImageUrl="../Imagenes/insertar.png" 
                                style="top: 170px; left: 265px; position: absolute; height: 55px; width: 55px" 
                                onclick="insertarCliente"/>                                                               
                                                  
                                
                        <asp:Image ID="imagen_linea3" runat="server" ImageUrl="../Imagenes/lineah.png" 
                                style="top: 220px; left: 170px; position: absolute; height: 20px; width: 150px" 
                                />                                    
                                
                       <asp:ImageButton ID="boton_modificar" runat="server" ToolTip="Modificar Cliente"  ImageUrl="../Imagenes/editar.png" 
                                style="top: 220px; left: 230px; position: absolute; height: 55px; width: 55px" 
                                onclick="modificarCliente"/>                                  
                    
                        <asp:Image ID="imagen_linea4" runat="server" ImageUrl="../Imagenes/lineah.png" 
                                style="top: 260px; left: 108px; position: absolute; height: 20px; width: 150px" 
                                />
                    
                       <asp:ImageButton ID="boton_eliminar" runat="server" ToolTip="Eliminar Cliente"  ImageUrl="../Imagenes/eliminar2.png" 
                                style="top: 260px; left: 160px; position: absolute; height: 55px; width: 55px" 
                                onclick="eliminarCliente"/>   
                                
                       <asp:Image ID="imagen_linea5" runat="server" ImageUrl="../Imagenes/lineah.png" 
                                style="top: 265px; left: 14px; position: absolute; height: 20px; width: 150px" 
                                />
                    
                       <asp:ImageButton ID="gestion_contacto" runat="server" ToolTip="Contactos"  ImageUrl="../Imagenes/contactos.png" 
                                style="top: 270px; left: 70px; position: absolute; height: 55px; width: 55px" 
                                onclick="gestionContactos"/> 
                                
                       <asp:Panel ID="popup_contactos" 
                        runat="server" Direction="LeftToRight" Height="300px" 
                        style="top: 150px; left: 269px; position: absolute; width: 500px" 
                        Font-Names="Arial" BorderStyle="Solid" BorderColor="#3E7DD6" BorderWidth="2px" BackColor="#EFF4FC">
                
                            <asp:Label ID="titulo2" runat="server" Font-Bold="True" 
                                Font-Names="Palatino Linotype" Font-Size="Large" ForeColor="#6666FF" BorderWidth="2px" BorderStyle="Dotted"
                                style="top: -2px; left: -2px; font-family: Verdana; font-size: 12pt; font-family: Verdana; font-size: 9pt; position: absolute; height: 26px; width: 500px" 
                                Text="Persona Contacto"></asp:Label>     
                                    
                            <asp:Label ID="label_nombre_contacto" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Nombre:"
                                style="top: 40px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
                             <asp:Label ID="label_apellido_contacto" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Apellido:"
                                style="top: 40px; left: 250px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
                            
                            <asp:Label ID="label_cedula_contacto" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="C.I:"
                                style="top: 70px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
            
                            <asp:Label ID="label_correo_contacto" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="E-Mail:"                            
                                style="top: 110px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 46px">
                            </asp:Label>
                            
                            <asp:Label ID="label_telefono_contacto" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Telefono:"
                                style="top: 150px; left: 30px; position: absolute; font-family: Verdana; font-size: 9pt; height: 26px; width: 70px">
                            </asp:Label>
                                     
                            
                            <asp:TextBox ID="texto_nombre_contacto" runat="server"
                                style="top: 40px; left: 94px; position: absolute; height: 20px; width: 150px" 
                                BorderStyle="Inset"></asp:TextBox> 
                    
                            <asp:TextBox ID="texto_apellido_contacto" runat="server"
                                style="top: 40px; left: 310px; position: absolute; height: 20px; width: 150px" 
                                BorderStyle="Inset"></asp:TextBox> 
                                
                            <asp:TextBox ID="texto_cedula_contacto" runat="server"
                                style="top: 70px; left: 94px; position: absolute; height: 20px; width: 150px" 
                                BorderStyle="Inset"></asp:TextBox>
                             
                           <asp:TextBox ID="texto_correo_contacto" runat="server"
                                style="top: 110px; left: 93px; position: absolute; height: 20px; width: 150px" 
                                BorderStyle="Inset"></asp:TextBox>
                    
                           <asp:Label ID="label_ejemplo_correo" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Medium" ForeColor="#999999" Text="ejemplo222@gmail.com"
                                style="top: 110px; left: 270px; position: absolute; height: 26px; width: 140px; right: 48px;" 
                                Font-Italic="True"></asp:Label>
                       
                           <asp:TextBox ID="texto_telefono_contacto" runat="server"
                                style="top: 150px; left: 93px; position: absolute; height: 20px; width: 150px" 
                                BorderStyle="Inset"></asp:TextBox>  
                                
                          <asp:ImageButton ID="boton_agregar_telefono" runat="server" ToolTip="Agrear Telefono" ImageUrl="../Imagenes/plus.png" 
                                style="top: 147px; left: 250px; position: absolute; height: 25px; width: 25px" 
                                onclick="agregarTelefonoContacto"/>                                                            
                
                          <asp:DropDownList ID="lista_telefono" runat="server" 
                                style="z-index: 1; left: 93px; top: 190px; position: absolute; height: 26px; 
                                width: 155px">
                          </asp:DropDownList>
                        
                          <asp:ImageButton ID="boton_agregar_contacto" runat="server" ToolTip="Agrear Contacto"  ImageUrl="../Imagenes/plus.png"
                              style="top: 230px; left: 340px; position: absolute; height: 25px; width: 25px" 
                              onclick="agregarContacto"/> 
                        
                          <asp:DropDownList ID="lista_contacto" runat="server" 
                               style="z-index: 1; left: 30px; top: 230px; position: absolute; height: 26px; 
                               width: 305px" >                           
                          </asp:DropDownList>  

                       </asp:Panel>    
                             
                       
                       <cc1:hovermenuextender ID="Hovermenuextender2" runat="Server"
                            TargetControlID="gestion_contacto"
                            PopupControlID="popup_contactos"
                            HoverCssClass="popupHover"
                            PopupPosition="Right"
                            OffsetX="0"
                            OffsetY="0"
                            PopDelay="100" />                         
                  
                </td>
                <td>
                        <asp:ImageButton ID="regresar" runat="server" ToolTip="Regresar" ImageUrl="../Imagenes/regresar.png" 
                                style="top: 525px; left: 10px; position: absolute; height: 30px; width: 30px" 
                                onclick="buttonRegresar"/>
                                
                        <asp:ImageButton ID="ayuda" runat="server" ToolTip="Ayuda" ImageUrl="../Imagenes/ayuda.png" 
                                style="top: 525px; left: 50px; position: absolute; height: 40px; width: 40px" 
                                onclick="buttonAyuda"/>  
                                
                        <asp:Panel ID="popup_ayuda" 
                        runat="server" Direction="LeftToRight" Height="150px" 
                        style="top: 208px; left: 269px; position: absolute; width: 300px" 
                        Font-Names="Arial" BorderStyle="Solid" BorderColor="#3E7DD6" BorderWidth="2px" BackColor="#EFF4FC">
                
                            <asp:Label ID="label_ayuda" runat="server" Font-Bold="True" 
                                Font-Names="Palatino Linotype" Font-Size="Large" ForeColor="#6666FF" BorderWidth="2px" BorderStyle="Dotted"
                                style="top: -2px; left: -2px; font-family: Verdana; font-size: 12pt; font-family: Verdana; font-size: 9pt; position: absolute; height: 26px; width: 300px" 
                                Text="Ayuda"></asp:Label>  
                                
                       </asp:Panel>                                                                               
                       
                       <cc1:hovermenuextender ID="Hovermenuextender1" runat="Server"
                            TargetControlID="ayuda"
                            PopupControlID="popup_ayuda"
                            HoverCssClass="popupHover"
                            PopupPosition="Right"
                            OffsetX="25"
                            OffsetY="-100"
                            PopDelay="100" />                                      
                                
                        <div id="myDiv">
                            <asp:Panel ID="panel_cliente" runat="server" Direction="LeftToRight" 
                                style="margin-top: 2px; margin-left: 450px; height: 450px; 
                                width: 500px; margin-right: 0px; top: 124px; position: absolute; left: 10px;" 
                                Height="80px" Width="367px" HorizontalAlign="Left" BorderStyle="Solid" BorderColor="#3E7DD6" BorderWidth="2px" BackColor="#EFF4FC">
                              
                          
                             <asp:Label ID="titulo_cliente" runat="server" Font-Bold="True" 
                                Font-Names="Palatino Linotype" Font-Size="X-Large" ForeColor="#6666FF" BorderWidth="2px" BorderStyle="Dotted"
                                style="top: -2px; left: -2px; font-family: Verdana; font-size: 12pt; position: absolute; height: 25px; width: 500px" 
                                Text="Datos del Cliente"></asp:Label>                                  
                            
                            <asp:Label ID="nombre" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Nombre:"
                                style="top: 60px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
    
                            <asp:Label ID="rif" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Rif:"
                                style="top: 100px; left: 30px; position: absolute; font-family: Verdana; font-size: 9pt; height: 26px; width: 70px">
                            </asp:Label>
            
                            <asp:Label ID="telefono" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Telefono:"
                                style="top: 140px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
            
                             <asp:Label ID="correo" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Correo Electronico:"
                                style="top: 220px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 150px">
                            </asp:Label>
            
                             <asp:Label ID="pais" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="País:"
                                style="top: 265px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
            
                            <asp:Label ID="estado" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Estado:"
                                style="top: 305px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
                            
                            <asp:Label ID="ciudad" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Ciudad:"
                                style="top: 340px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
                            
                            <asp:Label ID="calle" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Calle:"
                                style="top: 380px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
            
                            <asp:Label ID="direccion" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Small" ForeColor="Black" Text="Dirección:"
                                style="top: 420px; left: 30px; position: absolute; height: 26px; font-family: Verdana; font-size: 9pt; width: 70px">
                            </asp:Label>
            
                            <asp:TextBox ID="texto_nombre_cliente" runat="server"
                                style="top: 58px; left: 150px; position: absolute; height: 20px; width: 180px; right: 514px;" 
                                BorderStyle="Inset"></asp:TextBox>
            
                            <asp:TextBox ID="texto_rif_cliente" runat="server"
                                style="top: 98px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>
            
                            <asp:TextBox ID="texto_telefono_cliente" runat="server"
                                style="top: 138px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset" ToolTip="Introduzca codigo y numero telefonico"></asp:TextBox>
            
                            <asp:ImageButton ID="boton_agregar_telefono_cliente" runat="server" Text="Agrear Telefono" ImageUrl="../Imagenes/plus.png" 
                                style="top: 137px; left: 340px; position: absolute; height: 25px; width: 25px" 
                                onclick="agregarTelefonoCliente"/>
            
                            <asp:DropDownList ID="lista_telefono_cliente" runat="server" 
                                style="z-index: 1; left: 150px; top: 175px; position: absolute; height: 25px; 
                                width: 182px">
                            </asp:DropDownList>
            
                            <asp:TextBox ID="texto_correo_cliente" runat="server"     
                                style="top: 218px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset" >
                            </asp:TextBox>
            
                            <asp:Label ID="label_correo_ejemplo_cliente" runat="server" Font-Names="Palatino Linotype" 
                                Font-Size="Medium" ForeColor="#999999" Text="ejemplo222@gmail.com"
                                style="top: 216px; left: 340px; position: absolute; height: 20px; width: 130px; right: 320px;" 
                                Font-Italic="True"></asp:Label>
             
                            <asp:TextBox ID="texto_pais_cliente" runat="server"     
                                style="top: 263px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>

      
                            
                            <asp:TextBox ID="texto_estado_cliente" runat="server"     
                                style="top: 305px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>
                                                        
            
                            <asp:TextBox ID="texto_ciudad_cliente" runat="server"     
                                style="top: 340px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>
                                
                                                        
                            <asp:TextBox ID="texto_calle_cliente" runat="server"     
                                style="top: 380px; left: 150px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>
                                                            
                
                            <asp:TextBox ID="texto_direccion_cliente" runat="server"     
                                style="top: 420px; left: 151px; position: absolute; height: 20px; width: 180px" 
                                BorderStyle="Inset"></asp:TextBox>                                                                                                                                                                                                        
         
                     
                     </asp:Panel>
                </div>
                    
                </td>
            </tr>
        </table>
    <div/>
    </form>
</body>
</html>
